package plugin;

import java.io.File;
import java.io.FileFilter;

/**
 * Find plugins in plugin folder.
 * @author zem
 */
public class PluginFinder {

   public File[] PluginFinder(){
File pluginDir = new File("plugins");
    //finding plugins
	File[] jars = pluginDir.listFiles(new FileFilter() {
		public boolean accept(File file) {
			return file.isFile() && file.getName().endsWith(".jar");
		}
	});
return jars;
    }

}
